#pragma once
#include <string>

using namespace std;

typedef int ServerError;

class ServerErrors{
public:
	enum Errors {
		SUCCESS,
		FAILED_REG_ACCESS,
		FAILED_CREATE_PLAYER,
		FAILED_LOADING_PLAYER,
		FAILED_UPDATING_PLAYER,
		FAILED_LOADING_TOP10,
		USER_ALREADY_EXISTS,
		USER_ALREADY_LOGGED,
		USER_NOT_FOUND,
		INCORRECT_PASSWORD,
		INVALID_USERNAME,
		INSUFICIENT_PLAYERS,
		UNKNOWN_WORD,
		POSITION_ALREADY_TAKEN,
		GAME_ALREADY_STARTED
	};

	static string translateToString(int _error);
};
